<template>
  <div class="box" @click="navigateTo()">
    <div class="line">
      <svg-icon :icon-class="iconName" class="icon"/>
      <div class="right">
        <p>{{ className }}</p>
        <p>{{ numbers }}</p>
      </div>
    </div>

  </div>
</template>

<script>
export default {
  name: 'WatchBox',
  props: {
    numbers: {
      type: Number
    },
    className: {
      type: String
    },
    iconName: {
      type: String
    },
    path: {
      type: String
    },
  },
  methods: {
    navigateTo() {
      this.$router.push({name: this.path})
    }
  }
}
</script>

<style scoped lang="scss">
.box {
  width: 270px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.2);
  padding: 20px;
  margin: 40px 10px 10px 10px;

  .line {
    display: flex;
    justify-content: space-between;

    .icon {
      width: 60px;
      height: 60px;
      margin: 20px 10px;
    }

    .right {
      padding-right: 20px;
      text-align: center;

      p {
        font-size: 20px;
      }
    }
  }
}
</style>
